﻿namespace AutoMail.Log
{
    public class MyLoggerProvider : ILoggerProvider
    {
        private readonly IConfiguration _config;

        public MyLoggerProvider(IConfiguration configuration)
        {
            _config = configuration;
        }
        public ILogger CreateLogger(string categoryName)
        {
            return new MyLogger(categoryName, _config);
        }

        public void Dispose()
        {
        }
    }
}
